package ch.fhnw.qualiscan.core.db.pojos;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

/**
 * This pojo holds the information about a the users role. It is used by hibernate to get data out of the database.
 * 
 * @author Kevin Mettenberger
 *
 */
@SuppressWarnings("serial")
public class Role implements Serializable {
	
	private int id;
	private Permission permissions;
	private Set roletext = new HashSet();
	
	public Role() {}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Permission getPermissions() {
		return permissions;
	}

	public void setPermissions(Permission permissions) {
		this.permissions = permissions;
	}

	public Set getRoletext() {
		return roletext;
	}

	public void setRoletext(Set roletext) {
		this.roletext = roletext;
	}
	
	public void addRoletex(RoleText roletext) {
		this.roletext.add(roletext);
	}

	
	
}
